package com.example.onenetdht11.entity;

import java.io.Serializable;

public class User2 implements Serializable {
    private int id;
    private String account;
    private String password;
    private String username;
    private int age;
    private String sex;
    private String nickname;
    private String idcard;
    private String province;
    private String county;
    private String city;
    private String maxtmp;
    private String mintmp;
    private String haveold;
    private String havedisease;

    public User2() {
    }

    public User2(String account, String password) {
        this.account = account;
        this.password = password;
    }

    public User2(int id, String account, String password, String username, int age, String sex,
                 String nickname, String idcard, String maxtmp, String mintmp) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.username = username;
        this.age = age;
        this.sex = sex;
        this.nickname = nickname;
        this.idcard = idcard;
        this.maxtmp = maxtmp;
        this.mintmp = mintmp;
    }

    public User2(int id, String account, String password, String username, int age, String sex, String nickname, String idcard, String province, String county, String city, String maxtmp, String mintmp) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.username = username;
        this.age = age;
        this.sex = sex;
        this.nickname = nickname;
        this.idcard = idcard;
        this.province = province;
        this.county = county;
        this.city = city;
        this.maxtmp = maxtmp;
        this.mintmp = mintmp;
    }

    public User2(int id, String account, String password, String username, int age, String sex, String nickname, String idcard, String province, String county, String city, String maxtmp, String mintmp, String haveold, String havedisease) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.username = username;
        this.age = age;
        this.sex = sex;
        this.nickname = nickname;
        this.idcard = idcard;
        this.province = province;
        this.county = county;
        this.city = city;
        this.maxtmp = maxtmp;
        this.mintmp = mintmp;
        this.haveold = haveold;
        this.havedisease = havedisease;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getMaxtmp() {
        return maxtmp;
    }

    public void setMaxtmp(String maxtmp) {
        this.maxtmp = maxtmp;
    }

    public String getMintmp() {
        return mintmp;
    }

    public void setMintmp(String mintmp) {
        this.mintmp = mintmp;
    }

    public String getHaveold() {
        return haveold;
    }

    public void setHaveold(String haveold) {
        this.haveold = haveold;
    }

    public String getHavedisease() {
        return havedisease;
    }

    public void setHavedisease(String havedisease) {
        this.havedisease = havedisease;
    }

    @Override
    public String toString() {
        return "User2{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", username='" + username + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", nickname='" + nickname + '\'' +
                ", idcard='" + idcard + '\'' +
                ", province='" + province + '\'' +
                ", county='" + county + '\'' +
                ", city='" + city + '\'' +
                ", maxtmp='" + maxtmp + '\'' +
                ", mintmp='" + mintmp + '\'' +
                ", haveold='" + haveold + '\'' +
                ", havedisease='" + havedisease + '\'' +
                '}';
    }

}
